package com.example.ymm.modules1.mapper.my.user;

import com.example.ymm.base.CoreMapper;
import com.example.ymm.modules1.entity.my.user.DbClazzBook;
import com.example.ymm.modules1.entity.my.user.ViewBook;
import com.example.ymm.modules1.service.dto.DbClazzBookQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DbClazzBookMapper extends CoreMapper<DbClazzBook> {

    /**
     * 获取 班级关联书本信息
     * @param criteria
     * @return
     */
    List<ViewBook> getBookList(DbClazzBookQueryCriteria criteria);


    /**
     * 获取书本列表 (班级名称)
     * @param criteria
     * @return
     */
    List<ViewBook> getBookClazzNameList(DbClazzBookQueryCriteria criteria);

}